<template>
	<view class="popup">
		<view class="content">
			<image class="success-img" src="@/static/img/login/success.png"></image>
			<view class="title">
				密码修改成功
			</view>
			<Button3 class="btn" @click="goLogin">重新登录</Button3>
		</view>
	</view>
</template>

<script setup>
	import Button3 from '@/components/button3/button3.vue';
	// 前往登录
	const goLogin = () => {
		uni.navigateTo({
			url: '/pages/login/login'
		})
	}
</script>

<style lang="scss">
	.popup {
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);

		.content {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			width: 484rpx;
			height: 366rpx;
			border-radius: 16rpx;
			background-color: #fff;
			box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0, 0, 0, 0.1);

			.success-img {
				width: 82rpx;
				height: 101rpx;
			}

			.title {
				font-size: 28rpx;
				font-weight: bold;
				color: $primary-color;
				line-height: 33rpx;
				margin: 16rpx 0rpx 30rpx;
			}

			.btn {
				padding: 0rpx 64rpx;
			}
		}
	}
</style>